<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class BaseModel extends Model
{
   //开启自动写入时间戳字段
//    protected $autoWriteTimestamp = true;
//    // 定义时间戳字段名
//    protected $createTime = 'add_time';
//    protected $updateTime = 'update_time';
    public function search($where){

        $keys = array_keys($where);
        return $this->withSearch($keys,$where);

    }
}
